package cn.dqy.gotanserver.dto;

import java.lang.reflect.Field;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;

public class GoTanInet {
    public static Map<String, Field> fieldMap=new HashMap<>();
    static {
        Field[] declaredField = GoTanInet.class.getDeclaredFields();
        for(Field field: declaredField){
            field.setAccessible(true);
            fieldMap.put(field.getName(),field);
        }
    }
    int val;

    byte[] val_data; //文本信息 改造后 JSON字符串

    int pic;

    byte[] pic_data; //图片信息

    public int getVal() {
        return val;
    }

    public void setVal(int val) {
        this.val = val;
    }

    public byte[] getVal_data() {
        return val_data;
    }

    public void setVal_data(byte[] val_data) {
        this.val_data = val_data;
    }

    public int getPic() {
        return pic;
    }

    public void setPic(int pic) {
        this.pic = pic;
    }

    public byte[] getPic_data() {
        return pic_data;
    }

    public void setPic_data(byte[] pic_data) {
        this.pic_data = pic_data;
    }

    @Override
    public String toString() {
        return "GoTanInet{" +
                "val=" + val +
                ", pic=" + pic +
                '}';
    }
}
